<?php

class Config_model extends CI_Model {

    /*配置信息*/
    public function getConfig($table){
        $query = $this->db->select('*')->get($table);
        return $query->result_array();
    }
    public function updateConfig($table,$where,$data){
        $state = $this->db->where($where)->update($table,$data);
        return $state;
    }
    
    public function addConfig($table,$data){
        $this->db->insert($table,$data);
        return $this->db->insert_id();
    }
    


}
